<template>
  <el-dialog
    :visible.sync="param.visible"
    :title="param.title"
    center
    :close-on-click-modal="false"
  >
    <Form1
      ref="addForm"
      :rules="rules"
      :form="addForm"
      :items="items"
      :save="addSave"
    >
    </Form1>
  </el-dialog>
</template>
<script>
import Form1 from "@/components/Form1.vue";
export default {
  name: "Add",
  components: { Form1 },
  props: {
    param: {
      type: Object,
      default: () => {},
    },
    addForm: {
      type: Object,
      default: () => {},
    },
    //验证规则
    rules: {
      type: Object,
      default: () => {},
    },
    //表单项
    items: {
      type: Array,
      default: () => [],
    },
    //保存
    addSave: {
      type: Function,
      default: () => {},
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>
<style></style>
